package com.nidu.demo.mail.dto;

import com.nidu.demo.base.BaseCO;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.List;

/**
 * 邮件模板客户端对象
 *
 * @author auto
 */
@Data
@Schema(description = "邮件模板客户端对象")
@EqualsAndHashCode(callSuper = true)
public class MailTemplateCO extends BaseCO {

    @Schema(description = "主键ID", example = "1")
    private Long id;

    @Schema(description = "发送的邮箱账号编号", example = "1")
    private Long accountId;

    @Schema(description = "模板名称", example = "用户注册邮件")
    private String templateName;

    @Schema(description = "模板编码", example = "USER_REGISTER")
    private String templateCode;

    @Schema(description = "发送人名称", example = "系统管理员")
    private String templateNickname;

    @Schema(description = "模板标题", example = "欢迎注册")
    private String templateTitle;

    @Schema(description = "模板内容", example = "欢迎您注册我们的系统")
    private String templateContent;

    @Schema(description = "参数数组", example = "[\"username\", \"email\"]")
    private List<String> templateParams;

    @Schema(description = "开启状态", example = "1")
    private Integer status;

    @Schema(description = "备注", example = "用户注册时发送的邮件模板")
    private String remark;

}
